﻿using System;
using System.IO;
using System.Security.Policy;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using WWLauncher.Constant;
using WWLauncher.Util;
using WWLauncher.ViewModel;

namespace WWLauncher
{
    /// <summary>
    /// Test.xaml 的交互逻辑
    /// </summary>
    public partial class Test : Window
    {
        public Test()
        {
            //var obj = SerializableHelper.DeSerialize<AppData>(new FileInfo(Constants.DataFilePath),DataFormart.Json);

            //string base64 = ImageUtil.FileImageToBase64(@"e:\test.png", System.Drawing.Imaging.ImageFormat.Png);
            //ImageUtil.Base64ToBitmapImage(Constants.DEFAULT_BAC_IMAGE_BASE64);
            var url = new Uri("pack://application:,,,/Resource/Image/DefaultBackground.png");
            // var data = new AppData();//  AppData.Instance();


            // SerializableHelper.Serialize<AppData>(data, "z:\\test.json", DataFormart.Json);


            //var test= SerializableHelper.DeSerialize<AppData>(new FileInfo("z:\\test.json"), DataFormart.Json);



            //ImageUtil.ByteArrToImage(Convert.FromBase64String( Constants.DEFAULT_DIR_IMAGE_BASE64));
            //new BitmapImage(url);

            InitializeComponent();
        }
    }
}